﻿@model System.Double?
 @{
    if (ViewData.ContainsKey("class")) {
        ViewData["class"] = ViewData["class"] + "input";
    } else {
        ViewData.Add("class", "input");        
    }
}
@Html.TextBox("", (Model.HasValue ? String.Format("{0}", Model.Value.ToString("0:0,0")) : string.Empty), ViewData)     


